package flex.cc.order.manage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import flex.cc.order.manage.dto.order.OrderCustomerEntity;
import flex.cc.order.manage.dto.order.OrderPolicyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author wkangle
 * @className OrderPolicyDao
 * @description 服务单保单信息dao
 * @time 2021-09-06 15:43:34
 */
@Mapper
@Repository
public interface OrderPolicyDao extends BaseMapper<OrderPolicyEntity> {

    /**
     * @description 添加一条记录
     * @param orderPolicyEntity
     * @return
     * @author wkangle
     * @time 2021/09/08 0008 8:58
     * @exception/throws
     */
    int insert(OrderPolicyEntity orderPolicyEntity);

    /**
     * @description 根据查询条件查询服务单保单信息
     * @param params 查询条件
     * @return
     * @author wkangle
     * @time 2021-09-08 16:19:08
     * @exception/throws
     */
    OrderPolicyEntity getOneByParams(Map<String, Object> params);

    /**
     * @description 更新
     * @param orderPolicyEntity
     * @return
     * @author wkangle
     * @time 2021-09-12 15:19:36
     * @exception/throws
     */
    int update(OrderPolicyEntity orderPolicyEntity);

}
